package com.buddy.jni.demo04;

public class JNIString {
    static{
        System.loadLibrary("jni_string");
    }

    private native String sayHello(String message);

    public static void main(String[] args){
        String result = new JNIString().sayHello("hello world !!!");
        System.out.println("In Java, the returned string is: "+result);
    }

    //javac -h . JNIString.java 编译并生成.h文件
}
